/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package matching;

import org.semanticweb.owl.model.OWLClass;

/**
 *
 * @author livia
 */
public class ClassTriple implements Triple {

    public OWLClass element;
    public Restriction restriction;

    public ClassTriple(OWLClass e, Restriction r) {
       element=e;
       restriction=r;
    }

    @Override
    public String getElement() {
        return element.getNNF().toString();
    }

    @Override
    public boolean equals(Triple t) {
        return false;
    }

    @Override
    public boolean isClass() {
        return true;
    }

	
	public Restriction getRestriction() {
		return restriction;
	}

	public OWLClass getContext() {
		return null;
	}
	
	public String toString(){
		return "element:"+element+" restriction:"+restriction;
	}

}
